<div style='padding:5px;'>
	<h3>{$topGroup.name}</h3>

	{function 'show_branch'}
		<ul>
		{foreach $branch as $g}
			<li><a class='{if $g.id==$group.id}cat_a{else}cat{/if}' href='/catalog{$g.path}'>{$g.name}</a></li>
			{show_branch branch=$g.children}
		{/foreach}
		</ul>	
	{/function}

	{show_branch branch=$topBranch}
</div>